﻿namespace LJ.WebApi.Data;

/// <summary>
/// Api返回值
/// </summary>
/// <typeparam name="T"></typeparam>
public class WebApiResult<T>
{
    /// <summary>
    /// 状态码
    /// </summary>
    public string StatusCode { get; set; } = string.Empty;

    /// <summary>
    /// 执行成功
    /// </summary>
    public bool Succeeded { get; set; }

    /// <summary>
    /// 数据
    /// </summary>
    public T? Data { get; set; }

    /// <summary>
    /// 错误信息
    /// </summary>
    public string? Message { get; set; }
}